﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="B_ForwarderList.aspx.cs" Inherits="RGPWEB.EN.BaseData.B_ForwarderList" %>
<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">
<link href="~/inc/Style/index.css" rel="Stylesheet" type="text/css" />
<link href="~/inc/Style/contentstyle.css" rel="Stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="~/inc/script/pub.js"></script>
<link href="~/inc/Style/GridView.css" rel="Stylesheet" type="text/css" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div class="title">    
            <h1 class="on"><a href="javascript:void(0)">Forwarder List</a></h1>
             <h1><a href="B_Forwarder.aspx?Type=add">New Forwarder</a></h1>
        </div>
        <fieldset>
                <legend>Forwarder List</legend>
                 <asp:GridView ID="grv_list" runat="server" 
                    AutoGenerateColumns="False" DataKeyNames="F_ID" 
                    onrowcommand="grv_list_RowCommand" onrowdatabound="grv_list_RowDataBound" 
                    CssClass="Grid" 
                    onselectedindexchanging="grv_list_SelectedIndexChanging">
                    <FooterStyle CssClass="GridFooter" />
                    <RowStyle CssClass="Row" />
                    <HeaderStyle CssClass="HeadingCell" />
                    <Columns>
                        <asp:BoundField HeaderText="ShortName(Chinese)" DataField="F_ShortName" ItemStyle-Width="150px" SortExpression="FShorName">                        
<ItemStyle Width="150px"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField HeaderText="ShortName(English)" DataField="F_ShortEName" ItemStyle-Width="150px" SortExpression="FShorName">                        
<ItemStyle Width="150px"></ItemStyle>
                        </asp:BoundField>
                        <asp:TemplateField HeaderText ="ServerType" ItemStyle-Width="100px" SortExpression="FHeadName">
                            <ItemTemplate>
                                <asp:Label ID ="lbl_headname" runat="server" Text='<%# Eval("F_HeadName") %>'></asp:Label>
                            </ItemTemplate>

<ItemStyle Width="100px"></ItemStyle>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText ="Contact Name" DataField="F_LinkMen" ItemStyle-Width="100px" SortExpression="FLinkMen">
<ItemStyle Width="100px"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField HeaderText ="Tel" DataField="F_Tel" ItemStyle-Width="120px">
<ItemStyle Width="120px"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField HeaderText ="Contact Name" DataField="F_Mobile" ItemStyle-Width="120px">
<ItemStyle Width="120px"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField HeaderText ="Address" DataField="F_Add" ItemStyle-Width="300px">
<ItemStyle Width="300px"></ItemStyle>
                        </asp:BoundField>
                        
                        <asp:HyperLinkField DataNavigateUrlFields="F_ID" Text="Edit" DataNavigateUrlFormatString="B_Forwarder.aspx?Type=edit&id={0}"></asp:HyperLinkField >
                            
                        <asp:TemplateField>
                            <ItemTemplate>      
                                <asp:Button ID="btn_del" runat="server"  Text="Delete" CommandArgument='<%# Eval("F_ID")%>' CommandName="delID"/>            
                            </ItemTemplate>                
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <webdiyer:AspNetPager ID="anp_list" runat="server" 
                    onpagechanging="anp_list_PageChanging"  PrevPageText="UP" 
                    FirstPageText="First" LastPageText="Last" NextPageText="Next" 
                    ScrollBars="Vertical" UrlPaging="false" ShowPageIndexBox="Always" 
                    PageIndexBoxType="DropDownList" TextBeforePageIndexBox="PageSize:" 
                    HorizontalAlign="center" CustomInfoTextAlign="Left">
                </webdiyer:AspNetPager>
            </fieldset>
        
    </form>
</body>
</html>
